package listener;

import java.util.EventObject;
/**
 * 定义事件对象,用于标记当前进行的动作。必须继承EventObject。
 * @author zyj
 *
 */
public class StateEvent extends EventObject {

	private static final long serialVersionUID = 5323292975415079206L;
	
	private Enum<ActionEnum> action;
	
	public StateEvent(Object source, Enum<ActionEnum> action) {
		super(source);
		this.action = action;
	}

	public Enum<ActionEnum> getAction() {
		return action;
	}

	public void setAction(Enum<ActionEnum> action) {
		this.action = action;
	}

}
